package com.example.broadcast;

import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;

public class MyAudioService extends Service {
    //public MyAudioService() {
    //}

    MediaPlayer mediaPlayer;
    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        //throw new UnsupportedOperationException("Not yet implemented");
        return  null;
    }

    @Override
    public void onCreate(){
        mediaPlayer = mediaPlayer.create(this,R.raw.wish);
        mediaPlayer.start();

    }

    @Override
    public void onDestroy(){
        mediaPlayer.stop();
    }
}
